package one.stand.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

@Data
public class UpdateGoodsAsyncEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent
     */
    private UpdateGoodsAsyncEvent() {
        super("UpdateGoodsEvent");
    }

    public UpdateGoodsAsyncEvent(Integer selectCompanyId, Integer goodsId) {
        this();
        this.selectCompanyId = selectCompanyId;
        this.goodsId = goodsId;
    }

    private Integer selectCompanyId;
    private Integer goodsId;
}
